package com.sangeng.controller;

import com.mysql.cj.protocol.ResultsetRowsOwner;
import com.sangeng.domain.ResponseResult;
import com.sangeng.service.LoginServcie;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LogoutController {
    @Autowired
    private LoginServcie loginServcie;
    @GetMapping("/user/logout")
    public ResponseResult logout(){
        return loginServcie.logout();
    }
}
